-- GENERATED SPELL FOR [Saragosa] --


function spell0_26232(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(15063,pUnit)
pUnit:RegisterEvent('Sorts_26232', 8253, 1)
end

function spell1_26232(pUnit, Event) --@Frostfire Bolt,n/a--
pUnit:FullCastSpellOnTarget(51779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26232', 12000, 1)
end

function Sorts_26232(pUnit, Event)
local choix_sorts_26232 = math.random(0, 1)
if choix_sorts_26232 == 0 then
pUnit:RegisterEvent('spell0_26232', 1, 1)
end
if choix_sorts_26232 == 1 then
pUnit:RegisterEvent('spell1_26232', 1, 1)
end
end

function mob26232_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26232', math.random(1500, 3000), 1)
end

function mob26232_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26232_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26232_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26232, 1, 'mob26232_Action')
RegisterUnitEvent(26232, 2, 'mob26232_Leave')
RegisterUnitEvent(26232, 3, 'mob26232_Kill')
RegisterUnitEvent(26232, 4, 'mob26232_Die')
